﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SharePointCommander.Binding;

namespace SharePointCommander
{
    /// <summary>
    /// Interaction logic for SCObjectPropertiesWindow.xaml
    /// </summary>
    public partial class SCObjectPropertiesWindow : Window
    {
        private object spObject;

        public SCObjectPropertiesWindow(object spObject)
        {
            this.spObject = spObject;
            InitializeComponent();

            Loaded += new RoutedEventHandler(SCObjectPropertiesWindow_Loaded);
        }

        void SCObjectPropertiesWindow_Loaded(object sender, RoutedEventArgs e)
        {
            psObjectProperties.ListView.ItemsSource = BindingHelper.GetObjectFields(spObject);
        }
    }
}
